<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Marketing extends MY_Controller {
	function __construct(){
	parent::__construct();
		$this->load->model('User_model');
		$this->smarty->assign("menu", "marketing");
		$parent_id = 9;
		//获取school二级菜单
		$this->load->model('School_manage_menu_model');
		$menu_list = $this->School_manage_menu_model->get_menu_list($this->is_manage,$parent_id);
			// print_r($menu_list);exit;
		$this->smarty->assign("menu_list", $menu_list);

		$this->left_menu_min = array("menu" => " 营销管理", "curr" => '/marketing', "list" => $menu_list);
		$this->smarty->assign("left_menu_min", $this->left_menu_min);

		// $this->smarty->assign("menu", 'classes');

	}


	/**
	 * Index Page for this controller.
	 *
	 */
	public function index()
	{
		$this->load->model('Schoolo2o_model');
        $wx_mp = $this->Schoolo2o_model->get_wx_mp($this->user_data['school_id']);
        // print_r($wx_mp);exit;
        if($wx_mp){
        	$this->smarty->assign("wx_mp", $wx_mp);
        }

		$this->smarty->assign("menu", "marketing");
		$this->smarty->display("marketing/index.html");
	}
}
